<?php 
/**
*file artrecovery.php
* 恢复回收站文章
*
*/
define('ACC', true);
require('../include/init.php');
//用户检查
if (empty($_SESSION['username'])) {
	header("location:../index.php");
}

$art_id = $_GET['art_id']+0;

$art = new ArtModel();
//文章恢复
if (!$art->recovery($art_id)) {
	$info = '恢复失败';
	include(ROOT.'view/admin/info.html');
	exit;
}else {
	$info = '恢复成功';
	include(ROOT.'view/admin/info.html');
}


?>